package query;

import java.io.IOException;
import java.io.Serializable;

import server.MySqlConnector;
import model.Kunde;

public class KundeGetRowQuery extends AbstractQuery implements Serializable{
	private static final long serialVersionUID = 2661011647794721161L;
	private Kunde kunde;
	int id;
	
	public void doAction() {
		kunde = MySqlConnector.getKunde(id);
		
		try {
			serverOutputStream.writeObject(kunde);
		} catch (IOException e) {

			e.printStackTrace();
		}
	}
	
	public void setId(int id){
		this.id = id;
	}
}
